﻿@model Subfaculty.ViewModels.StudyPlanEditViewModel
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    
    @Html.Hidden("DirectionId", Model.StudyPlan.Direction.Id)
    @Html.HiddenFor(model => model.StudyPlan.Id)
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.Department)
    </div>
    <div class="editor-field">
        @Html.DropDownList("DepartmentId")
        @*@Html.ValidationMessageFor(model => model.DepartmentList)*@
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.Discipline)
    </div>
    <div class="editor-field">
        @Html.DropDownList("DisciplineId")
        @*@Html.ValidationMessageFor(model => model.DisciplinesList)*@
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.Semestr)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.Semestr)
        @Html.ValidationMessageFor(model => model.StudyPlan.Semestr)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.HoursLecture)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.HoursLecture)
        @Html.ValidationMessageFor(model => model.StudyPlan.HoursLecture)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.HoursPractice)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.HoursPractice)
        @Html.ValidationMessageFor(model => model.StudyPlan.HoursPractice)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.HoursLaboratory)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.HoursLaboratory)
        @Html.ValidationMessageFor(model => model.StudyPlan.HoursLaboratory)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.HoursSRS)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.HoursSRS)
        @Html.ValidationMessageFor(model => model.StudyPlan.HoursSRS)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.TypeSRS)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.TypeSRS)
        @Html.ValidationMessageFor(model => model.StudyPlan.TypeSRS)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.StudyPlan.ControlType)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StudyPlan.ControlType)
        @Html.ValidationMessageFor(model => model.StudyPlan.ControlType)
    </div>
    <p>
        <input type="submit" value="Save" />
    </p>
}